﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using DAL.LogicComponents;
using BAL.Entities;

namespace DigitalAnts.App_Code.BAL.Components
{
    public class clsCityBAL
    {
        #region -- select city list
        public static DataTable doCitySelectList()
        {
            try
            {
                return clsCityDAL.queryGetCityList();
            }
            catch
            {
                throw;
            }
        }
        #endregion

        #region -- select city list by id
        public static DataTable doCitySelectListById(clsCity obj)
        {
            try
            {
                return clsCityDAL.queryGetCityByID(obj);
            }
            catch
            {
                throw;
            }
        }
        #endregion

        #region --- Add city by User
        public static bool doAddNewCity(clsCity obj)
        {
            try
            {
                return clsCityDAL.queryAddCity(obj);
            }
            catch
            {
                throw;
            }
        }
        #endregion

        #region --- Update City by User
        public static bool doUpdateCity(clsCity obj)
        {
            try
            {
                return clsCityDAL.queryUpdateCity(obj);
            }
            catch
            {
                throw;
            }
        }

        #endregion

        #region --- check city exist by User
        public static bool doCheckCityExist(clsCity obj)
        {
            try
            {
                return clsCityDAL.CheckCityExist(obj);
            }
            catch
            {
                throw;
            }
        }
        #endregion
    }
}